home *** CD-ROM | disk | FTP | other *** search
- ' Instruction table for ALC.
- ' Format is
-
- ' Mnemonic OpCode CP_Handler KP_row_col ByteCount
-
- 'Mnemonic is case-insensitive
- 'OPcode in Hex
- 'CP_handler is compiler's handler number
- 'KP_row_col is keypad coordinates as two hex digits. Starts at 11 .. 00 means no key
- ' kEY PAD MAXIMUM EXTENT IS 44
- 'ByteCount is 1, 2 or 3
-
- ' items are separated by multiple spaces or tabs. NO COMMAS.
-
- ' Empty and comment lines ignored.
-
- 'File name must be OPCODE.TBL
-
- PUSH 01 0 14 1
- POP 02 0 24 1
- SWAP 03 0 34 1
- AND 04 0 41 1
- OR 05 0 31 1
-
- NOT 06 0 11 1
- XOR 07 0 21 1
- BRANCH 08 0 00 1
- RETURN 09 0 00 1
- RETIFZ 0A 0 00 1
- RETIFNZ 0B 0 00 1
- INCX 0C 0 33 1
- DECX 0D 0 43 1
-
- INPUT 40 1 12 2
- OUTPUT 41 1 22 2
- ON 42 1 32 2
- OFF 43 1 42 2
- STORE 44 1 13 2
- RECALL 45 1 23 2
-
- START 46 1 00 2
- STOP 47 1 00 2
- TEST 48 1 00 2
- LOADX 4A 1 44 2
-
- GOTO 80 2 00 3
- GOIFZ 81 2 00 3
- GOIFNZ 82 2 00 3
- GOSUB 83 2 00 3
-
- TARGET 00 3 00 2
- SETTIMER C0 4 00 3
-